package practiceTest.chap04.work2;

/**
 * Created by root on 2017/7/14.
 */
public class DequeApp {
    public static void main(String[] args){
        Deque deque = new Deque(5);

        deque.insertLeft(1);
        deque.insertLeft(2);
        deque.insertLeft(3);
        deque.insertLeft(4);
        deque.insertLeft(5);

        deque.displayDeque();

        System.out.println(deque.removeRight());
        System.out.println(deque.removeRight());
        System.out.println(deque.removeRight());

        deque.insertLeft(6);
        deque.insertLeft(7);
        deque.insertLeft(8);

        deque.displayDeque();



    }
}
